@extends('admin.layout')
@section('title')
 用户角色
@endsection
@section('body')
 <div class="widget-body">
   {{ Form::open(array('class' => 'am-form form-horizontal bv-form','enctype' => 'multipart/form-data')) }}
  <div class="form-title">
   修改用户角色
  </div>

  <div class="form-group has-feedback">
   <label class="col-lg-2 control-label">角色:</label>
   <input type="hidden" value="{{$id}}" name="id"/>
   <div class="col-lg-5">
    <select name="role_id">
     <option value="0">-请选择-</option>
     @foreach($roles as $role)
      <option value="{{$role['id']}}" @if($role['id'] == $role_id) selected @endif>{{$role['name']}}</option>
     @endforeach
    </select>
    <input type="submit" value="确定" class="btn btn-palegreen">
   </div>
  </div>
  {!! Form::close() !!}
 </div>
@endsection